﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using kevin.zhang.canada.at.gmail.com;

namespace WindowsFormsApplication1
{
    public partial class TransformSample : Form
    {
        public TransformSample()
        {
            InitializeComponent();
            textBox1.Text = @"O Canada,
Our home and native land, 
True patriot love 
In all thy sons command. 
With glowing hearts 
We see thee rise, 
The true, north, strong, and free. 
From far and wide 
Oh Canada 
We stand on guard for thee. 
God keep our land 
Glorious and free. 
Oh, Canada we stand on guard for thee, 
Oh, Canada 
we stand on guard for thee";

            textBox2.Text = @"Add first line:
Oh Canada,
Our home and great land, 
True patriot love 
In all thy sons and daughters command. 
With glowing hearts 
We see thee rise, 
The true, north, strong, and free. 
We stand on guard for thee. 
God keep our land 
Gloriou and freee. 
Oh, Canada we stand on guard for thee, 
Oh, Canada 
we stand on guard for thee
Add last line
I love my country, how about you?";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox2.Text = textBox1.Text;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Delta.ChangeSet changeSet = Delta.GetChangeSet(textBox1.Text, textBox2.Text);
            textBox3.Text = changeSet.ToString();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Delta.ChangeSet changeSet = Delta.GetChangeSet(textBox1.Text, textBox2.Text);
            textBox1.Text = Delta.ApplyChangeSet(textBox1.Text, changeSet);
        }

        private void button4_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Please go to transformer.codeplex.com for more detail information\r\n\r\nI am open to any comments, bug reports, suggestions, project invitation, as well as job offers :) \r\n\r\ncontact me at kevin.zhang.canada@gmail.com", "Hello from KevinZ");
        }

    }
}
